package com.demo.utils;
/**
 * 序列生成工具
 * @author zjj
 *
 */
public class SequenceUtil {
	
	private static String leftPad(String str,String numStr,int len){
		
		String formater = "%".concat(str).concat(len+"").concat("d");
		System.out.println(formater);
		return String.format(formater, Long.valueOf(numStr));
	}
	
	
	public String generateSeq(String key){
		return String.valueOf(key);
	}
	
	public static void main(String[] args) {
		String leftPad = leftPad("0", "18730587103573513461", 12);
		System.out.println(leftPad);
	}
}
